import request from "@/utils/request";

// 获取列表
export function getAllList(data) {
  return request({
    url: "/evaluationSummary/calculateEarthquakeReliefCostAssessment",
    method: "post",
    data: data,
  });
}
// 获取列表
export function getAllList1(data) {
  return request({
    url: "/houseEconomicDamageAssess/getDisasterAreasHousesDirectEconomicLosses",
    method: "post",
    data: data,
  });
}
// 查看
export function getEvaluationSubArea(id) {
  return request({
    url: "/houseEconomicDamageAssess/getEvaluationSubArea",
    method: "get",
    params:{
    	xsemId:id
    }
  });
}

// 查看
export function getEarthquakeReliefCostAssessment(id) {
  return request({
    url: "/evaluationSummary/getEarthquakeReliefCostAssessment",
    method: "get",
    params:{
    	xsemId:id
    }
  });
}

// 查询评估算法
export function getEvaluation(id) {
  return request({
    url: "/earthquakeLossRatio/findById",
    method: "get",
    params:{ xsemId: id }
  });
}

// 保存、修改评估算法
export function saveEvaluation(data) {
  return request({
    url: data.id ? "/earthquakeLossRatio/update" : "/earthquakeLossRatio/save",
    method: "post",
    data
  });
}